#include "Factory.h"

Product* Factory::createProduct(std::string name) {
    Product* res = nullptr;
    if(name == "productA"){
        res = new ProductA();
    }else{
        res = new ProductB();
    }

    return res;
}